Ext.define('Jason.view.example.grid.mergeGrid.MainView',{
	extend : 'Wys.basic.BaseView',
	requires:[
		'Wys.grid.MergeView'
	],
	viewType:'mergeView',
	viewConfig:{
		mergeColumn:['personname','post_name'],//纵向合并
		mergeRow : ['sex','age'],//横向合并
	},
	bufferedRenderer:true,
	store: Ext.create('Ext.data.Store',{
        autoLoad: true,
        remoteFilter:true,
        proxy: {
        	type : 'ajax',
	        api : {
	            read: cfg.requestUrl + 'app/localData/example/grid/MergeGridData'+cfg.suffix,
	            create: '',
	            update: '',
	            destroy: ''
	        },
	        actionMethods : {
				create 		: 'POST',
				read 		: 'GET',
				update 		: 'POST',
				destroy 	: 'POST'
			},
			reader : {
				type :	'json',
				rootProperty 	: 'data',
				totalProperty 	: 'total',
				successProperty : 'success'
			}
	    }
	}),
	columnLines: true,
    rowLines: true,
	columns:[
		{text: '编号', dataIndex: 'id',width:60},
	    {text: '姓名', dataIndex: 'personname'},
	    {text: '性别', dataIndex: 'sex'},
	    {text: '年龄', dataIndex: 'age',renderer:Ext.util.Format.intRenderer},
	    {text: '生日', dataIndex: 'date',xtype: 'datecolumn',format:'Y-m-d',editor:{xtype:'datefield',format:'Y-m-d'}},
	    {text: '岗位',dataIndex:'post_name'},
	    {text: '备注', dataIndex: 'bz', flex: 1,editor:{xtype:'textareafield',grow:true}}
	]
});